package com.home.school.service.impl;

import com.home.school.bean.TLog;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.home.school.mapper.TLogMapper;
import com.home.school.service.TLogService;
@Service
public class TLogServiceImpl extends ServiceImpl<TLogMapper, TLog> implements TLogService{

    @Override
    public void saveLog(String category, Integer userId, Integer eventId, String eventName, String args, String message) {
        TLog tLog = new TLog();
        tLog.setUserId(userId);
        tLog.setArgs(args);
        tLog.setEventName(eventName);
        tLog.setMessage(message);
        baseMapper.insert(tLog);
    }
}
